import type { EnterpriseDetail, EnterpriseParams } from "@/types/enterprise"
import { request } from "@/utils/reuqest"
import type { UploadData } from "element-plus"

// 添加营业执照
export  const uploadAPI=(data:FormData)=>{
    return request<UploadData>('/upload','POST',data)
}

// 提交表单数据
export const createEnterpriseAPI =(data:EnterpriseParams)=>{
   return  request('/park/enterprise','POST', data)

}

// 编辑表单数据
export const  updateEnterpriseDetailAPI=(id:string)=>{
    return  request<EnterpriseDetail>(`/park/enterprise`)
} 
